/**
 * ===========================================================================
 *
 *       Filename:  fdwatch.h
 *
 *    Description:  learn more
 *
 *        Version:  1.0
 *        Created:  04/14/09 22:39:05
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Author (mn), Email@xxx.xxx
 *        Company:  xxx xxx
 *
 * ===========================================================================
 */

#ifndef __FDWATCH_H__
#define __FDWATCH_H__

#include <sys/time.h>

#define DEF_RFD		1
#define DEF_WFD		2

int fd_init(struct timeval *tv);
int fd_clean(int type);
int fd_add(int fd, int type);
int fd_del(int fd, int type);
int fd_watch();
int fd_get(int type);

#endif // __FDWATCH_H__
